﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CollegeWebsite.Areas.Administrator.Models.Faculty>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            
           <%-- <th>
                FacultyID
            </th>--%>
            <th>
                FacultyName
            </th>
            <th>
                Desciption
            </th>
            <th>
                Status
            </th>
             <th style="width: 80px ">Actions</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <%--<td>
                <%= Html.Encode(item.FacultyID) %>
            </td>--%>
            <td>
                <%= Html.ActionLink(item.FacultyName,"ListByFaculty","Department", new {id=item.FacultyID}, new {}) %>
            </td>
            <td>
                <%= Html.Encode(item.FacultyDesciption) %>
            </td>
            <td>
                <%= Html.Encode(item.Status) %>
            </td>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.FacultyID }) %> |
                <%= Html.ActionLink("Details", "Details", new { id=item.FacultyID })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id=item.FacultyID })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PageHeadingPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SlideBarRight" runat="server">
</asp:Content>

